<script>
	export default {
		onLaunch: function(options) {
			
			
			console.log('App Launch')
		},
		onShow: function(options) {
			console.log('App Show')
			console.log(options);
			//路由前置守卫
			// let token = uni.getStorageSync('uni_id_token')
			// let token_expired = uni.getStorageSync('uni_id_token_expired')
			// let current = new Date().getTime();
			// console.log(current);
			// if((!token||current>token_expired)&&options){
			// 	uni.reLaunch({
			// 		url:'/pages/login/login',
			// 		fail(e) {
			// 			console.log(e);
			// 		}
			// 	})
			// }
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
		/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
		@import "uview-ui/index.scss";
	/*每个页面公共css */
</style>
